package com.data.structure.day06;

import org.junit.Test;

public class EnumLearnTest {
	@Test
	public void testEnum1() {
		System.out.println(EnumLearn.USER1.getName());
	}
	
	/**
	 * 若果两个name 值相等 则会返回第最后一个
	 */
	@Test
	public void testEnum2() {
		System.out.println(EnumLearn.getEnumByName("test1"));
	}
}
